<%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2022/9/21
  Time: 20:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table>
    <thead>
    <tr>
        <td>员工编号</td>
        <td>员工姓名</td>
        <td>员工性别</td>
        <td>员工薪资</td>
        <td>员工密码</td>
        <td>员工部门</td>
        <td>员工出生日期</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${empList}" var="emp">
        <tr>
            <td>${emp.eno}</td>
            <td>${emp.ename}</td>
            <td>${emp.esex}</td>
            <td>${emp.salary}</td>
            <td>${emp.pwd}</td>
            <td>${emp.dno}</td>
            <td>${emp.bornDate}</td>
            <td>
                <a href="/emp?method=updateEmp&eno=${emp.eno}">修改</a>
                <a href="/emp?method=deleteEmp&eno=${emp.eno}">删除</a>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
